﻿using Blog.Core.Domain.Model.User;
using Blog.Core.DTO;
using Blog.Core.DTO.ViewModel;
using Blog.Core.DTO.ViewModel.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Blog.Core.IServices.IUser
{
    /// <summary>
    /// 角色信息服务接口
    /// </summary>
    public interface IRolesServices:IBaseService<Roles>
    {
        /// <summary>
        /// 角色列表
        /// </summary>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageDTO<GetRolePowerDTO>> GetRoleInfo(string name,int pageindex, int pagesize);
        /// <summary>
        /// 批量修改角色状态
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ResponseResultDTO<int>> PutRole(string ids);
        /// <summary>
        /// 批量逻辑删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<ResponseResultDTO<int>> DelectRole(string ids);
        /// <summary>
        /// 角色添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<ResponseResultDTO<int>> PostRoleInfo(Roles entity);
    }
}
